package com.lrkj.payfee.domain;

import java.math.BigDecimal;

import com.lrkj.common.annotation.Excel;
import com.lrkj.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 收款单明细记录对象 tb_receipt_record
 *
 * @author yajun_ren
 * @date 2021-08-16
 */
@Data
public class ReceiptRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private String receiptRecordId;

    /**
     * 收款单ID
     */
    @Excel(name = "收款单ID")
    private String receiptId;

    /**
     * 收款单明细ID
     */
    @Excel(name = "收款单明细ID")
    private String receiptDetailId;

    //费用单明细ID
    private String costId;

    /**
     * 应收金额
     */
    @Excel(name = "应收金额")
    private BigDecimal receivableMoney;

    /**
     * 实收金额
     */
    @Excel(name = "实收金额")
    private BigDecimal billMoney;

    /**
     * 冲抵金额
     */
    @Excel(name = "冲抵金额")
    private BigDecimal amountAmount;

    /**
     * 优惠金额
     */
    @Excel(name = "优惠金额")
    private BigDecimal specialMoney;

    //付款方式
    private String paymentNote;

    //欠费金额
    private BigDecimal amountOwed;

    //业主ID
    private String ownerId;

    public ReceiptRecord() {
    }

    public ReceiptRecord(String receiptId) {
        this.receiptId = receiptId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("receiptRecordId", getReceiptRecordId())
                .append("receiptId", getReceiptId())
                .append("receiptDetailId", getReceiptDetailId())
                .append("receivableMoney", getReceivableMoney())
                .append("billMoney", getBillMoney())
                .append("amountAmount", getAmountAmount())
                .append("specialMoney", getSpecialMoney())
                .toString();
    }
}
